//1.需要导入Vue
import Vue from "vue";
//2.导入vuex
import Vuex from "vuex"
import count from "./count"
import car from "./car"
import list from "./list"
//3.将Vuex配置为Vue插件
Vue.use(Vuex)


//4.实例化store对象
const store = new Vuex.Store({
    modules: {
        count,
        car,
        list
    }

})
//5.向外导出store对象
export default store